package com.ssy.lingxi.purchase.api.dto.request;

import com.ssy.lingxi.purchase.api.dto.response.PriceParityDetailsResponse;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 *提交比价
 */
@Data
public class SubmitContrastPriceRequest {


    /**
     *需求单ID
     */
    @NotNull(message = "需求单ID不能为空")
    private Long id;

    /**
     *授标意见
     */
    private String awardComments;

    /**
     *比价轮次
     */
    @NotNull(message = "比价轮次不能为空")
    private Integer turn;
    /**
     * 附件
     */
    private List<EnclosureUrlsRequest> urls;


    /**
     *比价信息
     */
    @Valid
    @NotEmpty(message = "比价信息不能为空")
    private List<PriceParityDetailsResponse> priceParityInfos;
}
